<?php

function smarty_function_css($params, &$smarty)
{
    //获得css的路径
    $cssPath = $params['file'];
    return '<link rel="stylesheet" type="text/css" href="'.$cssPath.'"/>';

}


?>
